package o;

import android.app.Activity;
import android.content.Context;
import com.huawei.appgallery.foundation.service.common.protocol.AppDetailActivityProtocol;
import com.huawei.appgallery.foundation.service.common.protocol.AppDetailActivityProtocol.Request;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean;

public class eyl extends eyg {
    protected String ˋ(BaseCardBean baseCardBean) {
        String ॱॱ = baseCardBean.ॱॱ();
        if (dof.ॱ(ॱॱ)) {
            return null;
        }
        String str = "store|";
        if (ॱॱ.indexOf(str) == 0) {
            return ॱॱ.substring(str.length());
        }
        return ॱॱ;
    }

    protected void ˏ(Context context, BaseCardBean baseCardBean, String str) {
        cjo appDetailActivityProtocol = new AppDetailActivityProtocol();
        Request request = new Request(str, baseCardBean.u_());
        request.ˏॱ(baseCardBean.ˌॱ());
        appDetailActivityProtocol.ˏ(request);
        cjm o_cjm = new cjm("appdetail.activity", appDetailActivityProtocol);
        if (!(context instanceof Activity)) {
            o_cjm.ॱ().addFlags(268435456);
        }
        cjk.ˎ().ˋ(context, o_cjm);
    }
}
